﻿using System;

namespace ZYCommon
{
    

    public class Format_MinLength : Format_MaxLength
    {
        public override bool Test(string strValue)
        {
            return ((strValue == null) || (strValue.Length >= Convert.ToInt32(base.strSetting)));
        }

        public override string DisplayName
        {
            get
            {
                return ("不得小于 " + base.strSetting + " 个字符");
            }
        }

        public override string Name
        {
            get
            {
                return "minlength";
            }
        }
    }
}

